import hzcRequest from "../../../utils/https"


// 获取验证码
const sendUserCode = (data) => {
	return hzcRequest.post(`/sendSmsCodeOther`, data)
}
// // 注册
// const userRegiste=(data)=>{
//     return hzcRequest.post(`/h5Shop/api/ln/userRegiste`,data)
// }
// //找回密码
// const resetPassword=(data)=>{
//     return hzcRequest.post(`/h5Shop/api/ln/resetPassword`,data)
// }

// 登录
const userLogin = (data) => {
	return hzcRequest.post(`/userLoginOther`, data)
}


// 获取手机号
const getPhone = (data) => {
	return hzcRequest.post(`/api/member/wx/getPhoneOther?code=${data}`)
}



// 更新用户信息
const getUserByIdApi = (data) => {
	return hzcRequest.post(`/api/member/getUserByIdOther`, data)
}


// 新的登录注册
const wxLoginApi = (data) => {
	return hzcRequest.post(`/api/member/wxLoginOther`, data)
}


// 足迹的总数
const selCount = (params) => {
	return hzcRequest.get(`/api/footprint/selCountOther`, params)
}


// 收藏的总数
const selCountUserCollect = (params) => {
	return hzcRequest.get(`/api/userCollect/selCountUserCollectOther`, params)
}

export {
	sendUserCode,
	// userRegiste,
	userLogin,
	// resetPassword,
	selCountUserCollect,
	selCount,
	wxLoginApi,
	getUserByIdApi,
	getPhone
}